PROJECT(eqtest)

cmake_minimum_required(VERSION 2.8)

if(WIN32)
    add_definitions(/wd4244)
    include_directories($ENV{PROGRAMFILES}/Equalizer/include)
    link_directories($ENV{PROGRAMFILES}/Equalizer/lib)
    set(EqualizerLib "Equalizer.lib;Collage.lib;OpenGL32.lib")
else(WIN32)
    add_definitions("-g -O2 -Wall -std=gnu++0x")
    set(EqualizerLib "-lEqualizer -lCollage")
endif(WIN32)

add_executable(daemon daemon.cpp)
target_link_libraries(daemon "-lpthread")

add_subdirectory(app)
add_subdirectory(client)
add_subdirectory(config)
add_subdirectory(common)
add_subdirectory(shaders)
